package com.sooth.micro.camunda.converter.bean.gateway;

import com.sooth.micro.camunda.converter.bean.BaseDefinition;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class BranchNode {

    private Boolean isDefault;

    private String nodeName;

    private String expressionType;

    private Boolean isAnd;

    private List<BranchNodeColumn> expressionList;

    private String expression;

    private String content;

    private BaseDefinition nextNode;

    public String getNodeType() {
        return "condition";
    }

    @Data
    public static class BranchNodeColumn {
        private String column;
        private String condition;
        private Object value;
    }
}
